package homework;

public class Teacher {
   private String name;
   private int id;

    public Teacher() {
    }

    public Teacher(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    public void teache(){
        System.out.println("工号为"+id+"的"+name+"老师正在上课");
    }
}
